import request from '@/utils/request'

export default {

  getPageUserLike(currentPage,pageSize,query){
    return request({
      url: `/userInfo/${currentPage}/${pageSize}`,
      headers: {
        isToken: true
      },
      method: 'get',
      params: query
    })
  },
//增
  save(data){
    return request({
      url:`/userInfo`,
      method:"post",
      headers: {
        isToken: true
      },
      data: data
    })
  },
//删
  deleteById(id){
    return request({
      url:`/userInfo/${id}`,
      method:"delete",
      headers: {
        isToken: true
      },
    })
  },
//改
  updateById(data){
    return request({
      url:`/userInfo`,
      method:"put",
      headers: {
        isToken: true
      },
      data:data
    })
  }
}

